Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 2 - Control Manager Reference / Control Manager Types and Constants


Bevel Button Text Placement Constants

NEW WITH THE APPEARANCE MANAGER

These constants can be passed in the inData parameter of SetControlData and returned by GetControlData to specify the placement of bevel button text in relation to an icon suite, color icon, or picture. They can be used in conjunction with bevel button text and graphic alignment constants to create, for example, a button where the graphic and text are left justified with the text below the graphic.

enum {
   kControlBevelButtonPlaceSysDirection     = -1,
   kControlBevelButtonPlaceNormally         = 0,
   kControlBevelButtonPlaceToRightOfGraphic = 1,
   kControlBevelButtonPlaceToLeftOfGraphic  = 2,
   kControlBevelButtonPlaceBelowGraphic     = 3,
   kControlBevelButtonPlaceAboveGraphic     = 4
};
typedef SInt16 ControlButtonTextPlacement;

Constant descriptions

kControlBevelButtonPlaceSysDirection
Bevel button text is placed according to the system default script direction.
kControlBevelButtonPlaceNormally
Bevel button text is centered.
kControlBevelButtonPlaceToRightOfGraphic
Bevel button text is placed to the right of the graphic.
kControlBevelButtonPlaceToLeftOfGraphic
Bevel button text is placed to the left of the graphic.
kControlBevelButtonPlaceBelowGraphic
Bevel button text is placed below the graphic.
kControlBevelButtonPlaceAboveGraphic
Bevel button text is placed above the graphic.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998